// TextStyle.cpp: implementation of the TextStyle class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "TextStyle.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

TextStyle::TextStyle()
{
	m_bReversal = FALSE;
	m_bReverse = FALSE;
	m_bVertical = FALSE;
	m_dbHeight = 0.0;
	m_dbAngleOfRotation = 0.0;
	m_dbWidthRatio = 0.0;
	m_nAlignStyle = 0;
}

TextStyle::~TextStyle()
{

}

BOOL TextStyle::IsReversal()
{
	return m_bReversal;
}

void TextStyle::SetReversal(BOOL bReversal)
{
	m_bReversal = bReversal;
}

BOOL TextStyle::IsReverse()
{
	return m_bReverse;
}

void TextStyle::SetReverse(BOOL bReverse)
{
	m_bReverse = bReverse;
}

BOOL TextStyle::IsVertical()
{
	return m_bVertical;
}

void TextStyle::SetVertical(BOOL bVertical)
{
	m_bVertical = bVertical;
}

DOUBLE TextStyle::GetHeight()
{
	return m_dbHeight;
}

void TextStyle::SetHeight(DOUBLE dbHeight)
{
	m_dbHeight = dbHeight;
}

DOUBLE TextStyle::GetAngleOfRotation()
{
	return m_dbAngleOfRotation;
}

void TextStyle::SetAngleOfRotation(DOUBLE dbAngle)
{
	m_dbAngleOfRotation = dbAngle;
}

DOUBLE TextStyle::GetWidthRatio()
{
	return m_dbWidthRatio;
}

void TextStyle::SetWidthRatio(DOUBLE dbRatio)
{
	m_dbWidthRatio = dbRatio;
}

CString TextStyle::GetFont()
{
	return m_strFont;
}

void TextStyle::SetFont(const CString& strFont)
{
	m_strFont = strFont;
}

CString TextStyle::GetBigFont()
{
	return m_strBigFont;
}

void TextStyle::SetBigFont(const CString& strFont)
{
	m_strBigFont = strFont;
}

INT TextStyle::GetAlignStyle()
{
	return m_nAlignStyle;
}

void TextStyle::SetAlignstyle(INT nStyle)
{
	m_nAlignStyle = nStyle;
}

CString TextStyle::GetStyleName()
{
	return m_strTextStyleName;
}

void TextStyle::SetStyleName(const CString& strName)
{
	m_strTextStyleName = strName;
}

TextStyle& TextStyle::operator=(TextStyle& Style)
{
	if(this == &Style)
		return *this;

	m_bReversal = Style.IsReversal();
	m_bReverse = Style.IsReverse();
	m_bVertical = Style.IsVertical();
	m_dbAngleOfRotation = Style.GetAngleOfRotation();
	m_dbHeight = Style.GetHeight();
	m_dbWidthRatio = Style.GetWidthRatio();
	m_nAlignStyle = Style.GetAlignStyle();
	m_strBigFont = Style.GetBigFont();
	m_strFont = Style.GetFont();
	m_strTextStyleName = Style.GetStyleName();

	return *this;
}